import request from "../utils/request"
import qs from "qs";
import { Encrypt } from '../utils/dencrypt';
const baseUrl = '/api'
const userApi = {
    login: (data) => {
        data.password = Encrypt(data.password);
        return request({
            url: baseUrl + '/login',
            method: "post",
            data: qs.stringify(data)
        });
    },
    list: (params) => {
        return request({
            url: baseUrl + '/customer/list',
            method: "get",
            params
        });
    },
    userList: (params) => {
        return request({
            url: baseUrl + '/user/list',
            method: "get",
            params
        });
    },

}
export {
    userApi
}

